﻿namespace dPet.Infrastructure.EntityFramework.ModelConfigurations
{
	using dPet.Domain.Models;
	using Hangerd.EntityFramework;

	public class SaleOrderLineConfig : EntityTypeConfigBase<SaleOrderLine>
	{
		public SaleOrderLineConfig()
		{
			Property(sol => sol.ProductBarcode)
				.IsRequired()
				.HasMaxLength(50);

			Property(sol => sol.ProductName)
				.IsRequired()
				.HasMaxLength(50);

			Property(sol => sol.UnitName)
				.HasMaxLength(10);
		}
	}
}
